﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DiscussPBI.aspx.cs" MasterPageFile="~/Discussion.Master" Inherits="SprintChart.DiscussPBI" ValidateRequest="false" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">

</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="container"> 
 <table  style="width:100%;">
 <tr style="width:100%;">
 <td>
 <div id="discussiondiv" runat="server" >
        <div class="info-divs left-info-box">
            <table>
            <tr><td>
      <asp:HyperLink ID="activityLink" runat="server"></asp:HyperLink><b>Description</b></td></tr>
            <tr><td><asp:Panel ID="descriptionPanel" runat="server">
                <div id="workItemDescriptionDiv" runat="server"></div>
            </asp:Panel></td></tr>
            </table>
            
        </div>
        <div class="info-divs  right-info-box">
         <table>
            <tr><td><b>Acceptance Criteria</b></td></tr>
            <tr><td><asp:Panel ID="acceptanceCriteriaPanel" runat="server">
                <div id="workItemAcceptanceCriteria" runat="server"></div>
            </asp:Panel></td></tr>
            </table>
            
        </div>
        <div class="info-divs left-info-box" id="documentsDiv" runat="server"> 
            <table>
            <tr><td><b>Attachments</b></td></tr>
            <tr><td> <asp:Panel ID="documentsPanel" runat="server">
                <div id="documentsAttached" runat="server"></div>
            </asp:Panel></td></tr>
            </table>    
        </div>        
    </div>
 </td>
 </tr>
 <tr style="width:100%;">
 <table style="width:100%;">
   <tr style="width:100%;">
    <td style="width:10%;">
    </td>
    <td style="width:80%;">

     <div id="divDiscussionHistory" runat="server">
            <asp:Repeater ID="repeaterDiscussionHistory"  runat="server" EnableViewState="true" onitemdatabound="repeaterDiscussionHistory_ItemDataBound" >
                <HeaderTemplate>
                    <table style="width:100%;">
                        <tr>
                            <th class="col1">Commented By</th>
                            <%--<th class="col2">Commented For</th>--%>
                            <th class="col4">Comment</th>
                            <th class="col3">Regarding</th>
                            <th class="col5">Comment Date</th>
                        </tr>
                    </table>  
                </HeaderTemplate>
                <ItemTemplate>
                    <table id="itemTemplateTable" runat="server">
                        <tr>
                            <td class="col1"><%# DataBinder.Eval(Container.DataItem, "EnteredBySmallName") + " says"%></td>
                            <%--<td class="col2"><%# DataBinder.Eval(Container.DataItem, "EnteredFor")%></td>--%>                            
                            <td class="col4">
                                <div id="divDiscussiobnText" class="" style="" runat="server"></div>
                                <div id="divAttachments" runat="server"></div>
                            </td>
                            <td class="col3"><%# DataBinder.Eval(Container.DataItem, "DiscussionType")%></td>
                            <td class="col5"><%# DataBinder.Eval(Container.DataItem, "EntryDate")%></td>
                        </tr>
                    </table>             
                 </ItemTemplate>
            </asp:Repeater>
        </div>
    
 </td>
    <td style="width:10%;">
    </td>
   </tr>
 </table>
 
 </tr>
 <tr style="width:100%;">
 <td>
 <div class="btm-cont">
        <div class="btm-cont-1">
            <p class="p-wrap">
                <asp:Label ID="lblToUser" runat="server" Text="To"></asp:Label>
          <asp:DropDownList ID="ddlTfsUsers" runat="server">
          </asp:DropDownList>
            <asp:RequiredFieldValidator ID="rfvForToUsersList" runat="server" 
                ControlToValidate="ddlTfsUsers" ErrorMessage="*" ForeColor="Red" 
                InitialValue="- Select -"></asp:RequiredFieldValidator>
            </p>
            <p class="p-wrap">
               <asp:Label ID="lblCC" runat="server" Text="CC"></asp:Label>
        <asp:TextBox ID="txtCC" runat="server" Height="87px" Width="290px" 
                TextMode="MultiLine"></asp:TextBox>
          &nbsp;<asp:DropDownList ID="ddlTfsUsersForCC" runat="server" Height="16px" 
                Width="132px" onchange="getSelectedNamesForCCList();">
          </asp:DropDownList>
            </p>
            <p class="p-wrap">
                <asp:Label ID="lblAbout" runat="server" Text="About  "></asp:Label>     
          <asp:DropDownList ID="ddlAbout" runat="server"></asp:DropDownList>
            </p>
            <p class="p-wrap">
                <asp:Label ID="lblAttachment" runat="server" Text="Attach File  "></asp:Label>
                <asp:FileUpload ID="fileUploader" runat="server" EnableViewState="False" />   
            </p>
        </div>            
        <div class="btm-cont-2">           
            <p>
			<p>
			<textarea class="ckeditor" id="txtComment" name="editor1" cols="100" rows="10" runat="server" ></textarea>
		</p>
		</p>

        <asp:Button ID="btnSubmitComment"
            runat="server" Text="Submit" onclick="btnSubmitComment_Click" />         
        </div>
    </div>
 </td>
 </tr>
 </table> 

    
    
    </div>
    
</asp:Content>

